package com.scheduling.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName employee
 */
@TableName(value ="employee")
public class Employee implements Serializable {
    /**
     * 唯一标识员工，使用员工id来关联门店
     */
    @TableId
    private String id;

    /**
     * 员工邮件地址，可作为用户登录名，唯一
     */
    @TableId
    private String email;

    /**
     * 在页面上显示员工姓名
     */
    private String name;

    /**
     * 可选值：门店经理，副经理，小组长，店员
     */
    private String post;

    /**
     * 员工所属门店
     */
    private String storeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识员工，使用员工id来关联门店
     */
    public String getId() {
        return id;
    }

    /**
     * 唯一标识员工，使用员工id来关联门店
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 员工邮件地址，可作为用户登录名，唯一
     */
    public String getEmail() {
        return email;
    }

    /**
     * 员工邮件地址，可作为用户登录名，唯一
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 在页面上显示员工姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 在页面上显示员工姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 可选值：门店经理，副经理，小组长，店员
     */
    public String getPost() {
        return post;
    }

    /**
     * 可选值：门店经理，副经理，小组长，店员
     */
    public void setPost(String post) {
        this.post = post;
    }

    /**
     * 员工所属门店
     */
    public String getStoreId() {
        return storeId;
    }

    /**
     * 员工所属门店
     */
    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Employee other = (Employee) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPost() == null ? other.getPost() == null : this.getPost().equals(other.getPost()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPost() == null) ? 0 : getPost().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", email=").append(email);
        sb.append(", name=").append(name);
        sb.append(", post=").append(post);
        sb.append(", storeId=").append(storeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}